home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 507 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Q: Generic Callbacks -- "Object->*func(...)"
  5. Date: 15 Feb 1996 23:12:52 GMT
  6. Organization: self-employed
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4g0csh$dq5@news.bridge.net>
  9. References: <4fti32$p3p@bcarh8ab.bnr.ca>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="us-ascii"
  13. Content-Transfer-Encoding: 7bit
  14. X-Nntp-Posting-Host: ppp-mia1-61.bridge.net
  15. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  16. X-Lines: 17
  17. Content-Length: 527
  18. Originator: clamage@taumet
  19.  
  20.  
  21.  
  22. >> I'd like to be able to call "DoIt" with any type of object and a 
  23. >> pointer to any of that object's member functions that match the 
  24. >> 'parmlist'
  25.  
  26.  
  27.  In the C++ Report, February 1995, Richard Hickey suggested a library of 
  28. universal callback functors which would encapsulate both an object 
  29. reference and a pointer to a member function of that object. 
  30.  
  31.  The caller, and the provider of the callback, would not have to share 
  32. any type information other than the callback library itself.
  33.  
  34.                          David
  35.  
  36.  
  37. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  38.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  39.   summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  40. ]
  41.